﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public class MusicData
{
    public string name = "无名称";
    public string content = "还没有这个内容，请等待后续加入";
    public string simpleContent = "还没有这个内容，请等待后续加入";
    public float time = 5f;

    public override string ToString()
    {
        string result = "";
        if (GameData.isShowChinese)
            result = content.Clone() as string;
        else
            result = simpleContent.Clone() as string;

        if (GameData.myChar != "+-")
        {
            if (GameData.myChar.Length == 2)
            {
                result = result.Replace('+', GameData.myChar[0]);
                result = result.Replace('-', GameData.myChar[1]);
            }
            return $"~~~~~~~~~~《{name}》~~~~~~~~~~{(int)time}秒~~~~~~~~~~     {result}";
        }
        return $"~~~~~~~~~~《{name}》~~~~~~~~~~{(int)time}秒~~~~~~~~~~     {result}";
    }
}

public static class Musices
{
    /// <summary>
    /// 所有音乐
    /// </summary>
    public static List<MusicData> all_music = new List<MusicData>();
    /// <summary>
    /// 两只老虎
    /// </summary>
    public static MusicData music1 = new MusicData
    {
        name = "两只老虎",
        content = "1两2只3老1虎，1两2只3老1虎，3跑4得5快，3跑4得5快，5一6只5没4有3耳1朵，5一6只5没4有3尾1巴，1真-5奇1怪，1真-5奇1怪",
        simpleContent = "1 2 3 1 | 1 2 3 1 | 3 4 5 | 3 4 5 | 5 6 5 4 3 1 | 5 6 5 4 3 1 | 1 -5 1 | 1 -5 1",
        time = 25
    };
    /// <summary>
    /// 虫儿飞
    /// </summary>
    public static MusicData music2 = new MusicData
    {
        name = "虫儿飞",
        content = "3黑3黑3的4天5空3低2垂，1亮1亮1的2星3星3相-7-7随，-6虫3儿2飞，-6虫3儿2飞，-6你3在2思1念1谁，3天3上3的4星5星3流2泪，1地1上1的2玫3瑰3枯-7-7萎，-6冷3风2吹，-6冷3风2吹，-6只3要2有1你1陪，3虫2儿5飞，4花3儿2睡，5一4双3又2一5对3才2美，-6不怕3天2黑，-6只怕3心2碎，4不3管4累3不1累，4也3不4管3东1南2西11北 ",
        simpleContent = "3 3 3 4 5 3 2 | 1 1 1 2 3 3 -7 -7 | -6 3 2 | -6 3 2 | -6 3 2 1 1 | 3 3 3 4 5 3 2 | 1 1 1 2 3 3 -7 -7 | -6 3 2 | -6 3 2 | -6 3 2 1 1 | 3 2 5 | 4 3 2 | 5 4 3 2 5 3 2 | -6 3 2 | -6 3 2 | 4 3 4 3 1 | 4 3 4 3 1 2 1 1",
        time = 90
    };
    /// <summary>
    /// 粉刷匠
    /// </summary>
    public static MusicData music3 = new MusicData
    {
        name = "粉刷匠",
        content = "5我3是5一3个5粉3刷1匠，2粉4刷3本2领5强， 5我3要5把3那5新3房1子，2刷4的3很2漂1亮，2刷2了4房4顶3又1刷5墙， 2刷4子3飞2一5样，5哎3呀5我3的5小3鼻1子， 2变4呀3变2了1样",
        simpleContent = "5 3 5 3 5 3 1 | 2 4 3 2 5 | 5 3 5 3 5 3 1 | 2 4 3 2 1 | 2 2 4 4 3 1 5 | 2 4 3 2 5 | 5 3 5 3 5 3 1 | 2 4 3 2 1",
        time = 30
    };
    /// <summary>
    /// 中华人民共和国国歌
    /// </summary>
    public static MusicData music4 = new MusicData
    {
        name = "中华人民共和国国歌",
        content = "-5起1来，1不1愿1做-5奴-6隶-7的1人1们，3把1我2们3的5血5肉，3筑3成1我3们5新3的2长2城，6中5华2民3族5到3了，5最3危2险3的12时3候，5每-6个1人1被3迫3着5发5出2最2后2的-6-6吼2声，-5起1来，1起3来，3起5来，1我3们5万5众6一5心，3冒1着5敌5人5的3炮1火，-5前1进，-3冒1着5敌5人5的3炮1火，-5前1进，-5前1进，-5前1进1进",
        simpleContent = "-5 1 | 1 1 1 -5 -6 -7 1 1 | 3 1 2 3 5 5 | 3 3 1 3 5 3 2 2 | 6 5 2 3 5 3 | 5 3 2 3 1 2 3 | 5 -6 1 1 3 3 5 5 2 2 2 -6 -6 2 | -5 1 | 1 3 | 3 5 | 1 3 5 5 6 5 | 3 1 5 5 3 1 | -5 1 | -3 1 5 5 5 3 1 | -5 1 | -5 1 | -5 1 1",
        time = 50
    };
    /// <summary>
    /// 微微一笑很倾城
    /// </summary>
    public static MusicData music5 = new MusicData
    {
        name = "微微一笑很倾城",
        content = "5 +5 +5 0 +3 +4 +3 +1 +1，5 +1 7 7 +1，5 +2 +1 +1 +2，5 +1 7 7 +1，3雨2水3滴4在5我3的2外5套 ，+1思7念+1浸+2透+3我+1的7衣5角，6你5给4的5暗6号6微5微3一1笑，4出3现4的5刚3刚2好，3擦2肩3而4过5你3的2发5梢，+1像7是+1春+2风+3吹+1绿7青5草，6浪5漫4在5发6酵，6只5愿7为+1你 5赶+4走+3所+1有+1烦+1恼，+1带+2你+3到+1天7涯6海5角，6听1你22的35心33跳，+1想+2给+3你+1一7个5拥5抱，5让6全+1世+1界+1都+2知+2道，+3遇+2见+1你+2我+3才5知+1道+3你+2对+1我7多+1重+2要，+1没7有6人7能+1感3觉6到+1你7最+1甜7美6的7笑，5我6再7不+1用7把6别5人+1寻+1找，+4因+3为+4我+3已+1经6找+2到。+3我+2们+1的+2缘+3分5刚+1好+3不+2许+1别7人+1打+2扰， +1搭7配6爱7情+1的3美6妙+1只7有+1我7们6知7道，5紧6紧7围+1绕7你6每5分+1每+1秒，5你+4对+3我+4多+1么+1重+1要。3擦2肩3而4过5你3的2发5梢，+1像7是+1春+2风+3吹+1绿7青5草，6浪5漫4在5发6酵，6只5愿7为+1你 5赶+4走+3所+1有+1烦+1恼，+1带+2你+3到+1天7涯6海5角，6听1你22的35心33跳，+1想+2给+3你+1一7个5拥5抱，5让6全+1世+1界+1都+2知+2道，+3遇+2见+1你+2我+3才5知+1道+3你+2对+1我7多+1重+2要，+1没7有6人7能+1感3觉6到+1你7最+1甜7美6的7笑，5我6再7不+1用7把6别5人+1寻+1找，+4因+3为+4我+3已+1经6找+2到。+3我+2们+1的+2缘+3分5刚+1好+3不+2许+1别7人+1打+2扰， +1搭7配6爱7情+1的3美6妙+1只7有+1我7们6知7道，5紧6紧7围+1绕7你6每5分+1每+1秒，5你+4对+3我+4多+1么+1重+1要。+3遇+2见+1你+2我+3才5知+1道+3你+2对+1我7多+1重+2要，+1没7有6人7能+1感3觉6到+1你7最+1甜7美6的7笑，5我6再7不+1用7把6别5人+1寻+1找，+4因+3为+4我+3已+1经6找+2到。+3我+2们+1的+2缘+3分5刚+1好+3不+2许+1别7人+1打+2扰， +1搭7配6爱7情+1的3美6妙+1只7有+1我7们6知7道，5紧6紧7围+1绕7你6每5分+1每+1秒，5你+4对+3我+4多+1么+1重+1要，5紧6紧7围+1绕7你6每5分+1每+1秒，5你+4对+3我+4多+1么+1重+1要，5你+4对+3我+4多+1么+1重+1要",
        simpleContent= "5 +5 +5 0 +3 +4 +3 +1 +1 | 5 +1 7 7 +1| 5 +2 +1 +1 +2| 5 +1 7 7 +1| 3 2 3 4 5 3 2 5  | +1 7 +1 +2 +3 +1 7 5 | 6 5 4 5 6 6 5 3 1 | 4 3 4 5 3 2 | 3 2 3 4 5 3 2 5 | +1 7 +1 +2 +3 +1 7 5 | 6 5 4 5 6 | 6 5 7 +1  5 +4 +3 +1 +1 +1 | +1 +2 +3 +1 7 6 5 | 6 1 22 35 33 | +1 +2 +3 +1 7 5 5 | 5 6 +1 +1 +1 +2 +2 | +3 +2 +1 +2 +3 5 +1 +3 +2 +1 7 +1 +2 | +1 7 6 7 +1 3 6 +1 7 +1 7 6 7 | 5 6 7 +1 7 6 5 +1 +1 | +4 +3 +4 +3 +1 6 +2 | +3 +2 +1 +2 +3 5 +1 +3 +2 +1 7 +1 +2 |  +1 7 6 7 +1 3 6 +1 7 +1 7 6 7 | 5 6 7 +1 7 6 5 +1 +1 | 5 +4 +3 +4 +1 +1 +1 | 3 2 3 4 5 3 2 5 | +1 7 +1 +2 +3 +1 7 5 | 6 5 4 5 6 | 6 5 7 +1  5 +4 +3 +1 +1 +1 | +1 +2 +3 +1 7 6 5 | 6 1 22 35 33 | +1 +2 +3 +1 7 5 5 | 5 6 +1 +1 +1 +2 +2 | +3 +2 +1 +2 +3 5 +1 +3 +2 +1 7 +1 +2 | +1 7 6 7 +1 3 6 +1 7 +1 7 6 7 | 5 6 7 +1 7 6 5 +1 +1 | +4 +3 +4 +3 +1 6 +2 | +3 +2 +1 +2 +3 5 +1 +3 +2 +1 7 +1 +2 |  +1 7 6 7 +1 3 6 +1 7 +1 7 6 7 | 5 6 7 +1 7 6 5 +1 +1 | 5 +4 +3 +4 +1 +1 +1 | +3 +2 +1 +2 +3 5 +1 +3 +2 +1 7 +1 +2 | +1 7 6 7 +1 3 6 +1 7 +1 7 6 7 | 5 6 7 +1 7 6 5 +1 +1 | +4 +3 +4 +3 +1 6 +2 | +3 +2 +1 +2 +3 5 +1 +3 +2 +1 7 +1 +2 |  +1 7 6 7 +1 3 6 +1 7 +1 7 6 7 | 5 6 7 +1 7 6 5 +1 +1 | 5 +4 +3 +4 +1 +1 +1 | 5 6 7 +1 7 6 5 +1 +1 | 5 +4 +3 +4 +1 +1 +1 | 5 +4 +3 +4 +1 +1 +1",
        time = 204
    };
    /// <summary>
    /// 谪仙
    /// </summary>
    public static MusicData music6 = new MusicData
    {
        name = "谪仙",
        content = "+1 +3 +2 +5 +1 +2 +3 6 +1 +2 7 6，3仙5歌6音，0 +1玉6笛5灵，6酒5盏5玉6露33清。3剑5舞6轻，0 +1潇7洒+1过77白53袍3影。6新5殿6又0+3细+2雕+1流+2+2金，3声+2声+2箜7篌+1鸣，6一6笔+1浓+2墨+3留7诗5狂6情。6玉+1袍+2长+3剑+2堪+1风+2+2流，+2山+3川7不6念76旧，6赋5诗6为6狂+1也+2无7有 6愁。+1称7谪6仙+5瑶+3宫+1难+2留，+2去+3凡3间+2红+2楼+2+3斗+1酒，6多5情6眸6落+1墨+2试+1卷+2又+5+3几+3斗。+1斟7世6间+5最+3烈+1的+2酒，+2卧+3长3安+2巍+2巍+2+3高+1楼，6看5尽6天5下6何+1人+2可+3似7他5无6忧。（+1+3+2+3+36+1+3+256）6玉+1袍+2长+3剑+2堪+1风+2+2流，+2山+3川7不6念76旧，6赋5诗6为6狂+1也+2无7有 6愁。+1称7谪6仙+5瑶+3宫+1难+2留，+2去+3凡3间+2红+2楼+2+3斗+1酒，6多5情6眸6落+1墨+2试+1卷+2又+5+3几+3斗。+1斟7世6间+5最+3烈+1的+2酒，+2卧+3长3安+2巍+2巍+2+3高+1楼，6看5尽6天5下6何+1人+2可+3似7他5无6忧。+1称7谪6仙+5瑶+3宫+1难+2留，+2去+3凡3间+2红+2楼+2+3斗+1酒，6多5情6眸6落+1墨+2试+1卷+2又+5+3几+3斗。+1斟7世6间+5最+3烈+1的+2酒，+2卧+3长3安+2巍+2巍+2+3高+1楼，6看5尽6天5下6何+1人+2可+3似7他5无6忧。（+1+3+2+3+36+1+3+256）",
        simpleContent= "+1 +3 +2 +5 +1 +2 +3 6 +1 +2 7 6 | 3 5 6 | 0 +1 6 5 | 6 5 5 6 33 | 3 5 6 | 0 +1 7 +1 77 53 3 | 6 5 6 0 +3 +2 +1 +2+2 | 3 +2 +2 7 +1 | 6 6 +1 +2 +3 7 5 6 | 6 +1 +2 +3 +2 +1 +2+2 | +2 +3 7 6 76 | 6 5 6 6 +1 +2 7  6 | +1 7 6 +5 +3 +1 +2 | +2 +3 3 +2 +2 +2+3 +1 | 6 5 6 6 +1 +2 +1 +2 +5+3 +3 | +1 7 6 +5 +3 +1 +2 | +2 +3 3 +2 +2 +2+3 +1 | 6 5 6 5 6 +1 +2 +3 7 5 6 |  ( +1 +3 +2 +3 +3 6 +1 +3 +2 5 6 ) | 6 +1 +2 +3 +2 +1 +2+2 | +2 +3 7 6 76 | 6 5 6 6 +1 +2 7  6 | +1 7 6 +5 +3 +1 +2 | +2 +3 3 +2 +2 +2+3 +1 | 6 5 6 6 +1 +2 +1 +2 +5+3 +3 | +1 7 6 +5 +3 +1 +2 | +2 +3 3 +2 +2 +2+3 +1 | 6 5 6 5 6 +1 +2 +3 7 5 6 | +1 7 6 +5 +3 +1 +2 | +2 +3 3 +2 +2 +2+3 +1 | 6 5 6 6 +1 +2 +1 +2 +5+3 +3 | +1 7 6 +5 +3 +1 +2 | +2 +3 3 +2 +2 +2+3 +1 | 6 5 6 5 6 +1 +2 +3 7 5 6 | ( +1 +3 +2 +3 +3 6 +1 +3 +2 5 6 )",
        time = 178
    };
    /// <summary>
    /// 撒野
    /// </summary>
    public static MusicData music7 = new MusicData
    {
        name = "撒野",
        content = "1 1 1 -7 1 ，1 1 2 1 -7 -5 -6 ，1 1 -7 1 1 2 我向上是迷茫，-5 -5 2 1 -7 -5 -6 我向下听见你说，1 -7 1 2 2 3 -7 这世界是空荡荡，3 3 3 2 3 你说一二三，1 1 2 1 -7 打碎了过往，1 -6 消亡，3 2 3 有风吹，1 1 2 1 -7 破了的归途，-5 -6 1 -7 1 2 2 4 3 你有没有看到我在唱，3 3 3 2 5 4 3 你说一二三转身，3 3 3 2 5 6 4 3 你听被抹掉的慌张，-6 3 我想，6 5 3 2 4 3 抬头暖阳春草，3 2 1 -7 1 4 3 你给我简单的拥抱，-6 3 我想，6 7 5 4 3 5 3 -7 1 踩碎了迷茫走过时光，-6 -6 1 -7 1 -7 -7 -6 睁开眼你就会听到，-6 3 我想，6 7 +1 3 左肩有你，+1 +2 7 +1 7 6 右肩微笑，3 3 我想，3 6 +1 3 +1 +2 7 +1 7 6 在你眼里撒野奔跑，3 3 我想，6 5 3 -7 1 4 3 一个眼神就到老",
        simpleContent = "+1 +1 +1 7 +1 | +1 +1 +2 +1 7 5 6 | +1 +1 7 +1 +1 +2 | 5 5 +2 +1 7 5 6 | +1 7 +1 +2 +2 +3 7 | +3 +3 +3 +2 +3 | +1 +1 +2 +1 7 | +1 6 | +3 +2 +3 | +1 +1 +2 +1 7 | 5 6 +1 7 +1 +2 +2 +4 +3 | +3+3 +3 +2 +5 +4 +3 | +3 +3 +3 +2 +5 +6 +4 +3 | 6 +3 | +6 +5 +3 +2 +4 +3 | +3 +2 +1 7 +1 +4 +3 | 6 +3 | +6 +7 +5 +4 +3 | +5 +3 7 +1 | 6 6 +1 7 +1 7 7 6 | 6 +3 | +6 +7 ++1 +3 | ++1 ++2 +7 ++1 +7 +6 | +3 +3 | +6 +7 ++1 +3 | ++1 ++2 +7 ++1 +7 +6 | +3 +3 | +6 +5 +3 7 | 7 +4 +3 ",
        time = 120
    };
    /// <summary>
    /// 父亲
    /// </summary>
    public static MusicData music8 = new MusicData
    {
        name = "父亲",
        content = "(+1 +3 +2 6 5 | 6 5 3 6 7 | +1 +3 +2 5 +5 | +3 — — 6 7 | +1 +3 +2 0 +1 7 | +1 5 4 5 6 7 | +1 0 +3 +2 0 +5 | 6 — — — ) | 1总 -5是 1向 3你 4 4索 3取 2却 1不 | 1曾 -5说 1谢 2谢 3 3你 — | 1直 -5到 1长 3大 4以 3后 2才 1懂 | 3得 2你 2不 1容 1 1易 — | 1每 -5次 1离 3开 4总 3是 2装 1做 | 6轻 5松 5的 4样 3 3子 — | 1微 -5笑 1着 3说 4回 3去 2吧 0 1转 | 3身 2泪 2湿 1眼 1底 0 1多 | -6想 6和 6从 5前 3一 3样 3牵 | 4你 5温 1暖 5手 3掌 1可 -7是 | -6你 6不 6在 7我 5身 5旁 0 5托 | 6清 5风 4 4捎 3去 3安 2 | 2康 — — 0 6时 7光 | +1时 +1光 +1慢 +1 +1些 7吧 0 6不 7要 | 7再 7让 7 7你 +3变 +2老 +1了 0 6我 7愿 | +1用 +1我 +1一 +1切 +1换 7你 6 6岁 7月 | 655长 5留 — 0 6一 7生 | +1要 +1强 +1的 +1 +1爸 7爸 0 6我 7能 | 7为 7你 7 7做 +3些 7什 +1么 0 6微 7不 | +1足 +1道 +1 +1的 +3关 +2心 7收 6下 | 6吧 — — 0 6谢 7谢 | +1你 +1做 +1的 +1 +1一 7切 0 6双 7手 | 7撑 7起 7 7我 +3们 +2的 +1家 0 6总 7是 | +1竭 +1尽 +1 +1所 +1有 +1把 7最 6好 6 7的 | 6给 5我 — 0 6我 7是 | +1你 +1的 +1 +1骄 +1傲 7吗 0 6还 7在 | 7为 7我 7 7而 +3担 7心 +1吗 0 6你 7牵 | +1挂 +1的 +1孩 +1 +3子 +2啊 7长 6大 | 6啦 — — — | 6 — — — | 6 — 0 0 |",
        simpleContent = "(+1 +3 +2 6 5 | 6 5 3 6 7 | +1 +3 +2 5 +5 | +3 — — 6 7 | +1 +3 +2 0 +1 7 | +1 5 4 5 6 7 | +1 0 +3 +2 0 +5 | 6 — — — ) | 1 -5 1 3 4 4 3 2 1 | 1 -5 1 2 3 3 — | 1 -5 1 3 4 3 2 1 | 3 2 2 1 1 1 — | 1 -5 1 3 4 3 2 1 | 6 5 5 4 3 3 — | 1 -5 1 3 4 3 2 0 1 | 3 2 2 1 1 0 1 | -6 6 6 5 3 3 3 | 4 5 1 5 3 1 -7 | -6 6 6 7 5 5 0 5 | 6 5 4 4 3 3 2 | 2 — — 0 6 7 | +1 +1 +1 +1 +1 7 0 6 7 | 7 7 7 7 +3 +2 +1 0 6 7 | +1 +1 +1 +1 +1 7 6 6 7 | 655 5 — 0 6 7 | +1 +1 +1 +1 +1 7 0 6 7 | 7 7 7 7 +3 7 +1 0 6 7 | +1 +1 +1 +1 +3 +2 7 6 | 6 — — 0 6 7 | +1 +1 +1 +1 +1 7 0 6 7 | 7 7 7 7 +3 +2 +1 0 6 7 | +1 +1 +1 +1 +1 +1 7 6 6 7 | 6 5 — 0 6 7 | +1 +1 +1 +1 +1 7 0 6 7 | 7 7 7 7 +3 7 +1 0 6 7 | +1 +1 +1 +1 +3 +2 7 6 | 6 — — — | 6 — — — | 6 — 0 0 |",
        time = 120
    };
    /// <summary>
    /// 添加内部音乐
    /// </summary>
    public static void AddInnerMusic()
    {
        all_music.Clear();
        all_music.Add(music1);
        all_music.Add(music2);
        all_music.Add(music3);
        all_music.Add(music4);
        all_music.Add(music5);
        all_music.Add(music6);
        all_music.Add(music7);
        all_music.Add(music8);
    }
}